// 该文件专门用于创建整个应用的路由器
import VueRouter from 'vue-router'
//引入组件
import Home from '../pages/Home'
import News from '../pages/News'
import Message from '../pages/Message'

import xzchartdesigner_1 from "@/pages/xzchartdesigner/xzchartdesigner_1.vue";
import Chart_1 from "@/pages/xzchart/Chart_1/Chart_1.vue";

//创建并暴露一个路由器
export default new VueRouter({
    routes: [
        {
            path: '/xzchartdesigner_1',
            component: xzchartdesigner_1
        },        {
            path: '/xzchart_1',
            component: Chart_1
        },
        {
            path: '/home',
            component: Home,
            children: [
                {
                    path: 'news',
                    component: News,
                },
                {
                    path: 'message',
                    component: Message,
                }
            ]
        }
    ]
})
